package beanInfo;

public class MeaningInfo {

    public final static String SEPARATOR = "&&&"; //传输一组meaning时使用的分隔符

    public final static int ADD_WORD = 1;
    public final static int ADD_MEANING = 2;

    public final static int MAX_LENGTH = 255; //单词释义的最大长度

    public static boolean isLengthLegal(String word_meaning) {
        return word_meaning != null && !word_meaning.isEmpty() && word_meaning.getBytes().length <= MAX_LENGTH;
    }
}
